<%@ page language="java" pageEncoding="utf-8"%>

<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>资产信息折旧</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
<link rel="stylesheet"
	href="${pageContext.request.contextPath }/layui/css/layui.css">
<link rel="stylesheet" type="text/css" href="/layer/layer.css" />
<script src="/layer/jquery-3.6.0.min.js"></script>
<script src="/layer/layer.js"></script>
<script src="${pageContext.request.contextPath }/layui/layui.js"></script>
</head>
  <body>
  	<fieldset class="layui-elem-field">
		<legend>资产信息折旧</legend>
		<div class="layui-field-box">
			
		</div>
	</fieldset>
	<!-- 	数据表格 -->
	<table class="layui-hide" id="test" lay-filter="demo"></table>
	<script>
		layui.use([ 'table' ], function() {
			var table = layui.table;
			var $ = layui.jquery;

			table.render({
				elem : '#test',
				data : ${zc_list},
				cellMinWidth : 100 //全局定义常规单元格的最小宽度，layui 2.2.1 新增
				,
				cols : [ [ {
					field : 'zcId',
					width : 150,
					title : '资产编号',
					sort : true
				}, {
					field : 'zcNo',
					width : 150,
					title : '资产型号'
				}, {
					field : 'zcName',
					title : '资产名称'
				}, {
					field : 'zcPrice',
					title : '单价',
					sort : true
				}, {
					field : 'zcFactory',
					title : '生产厂商'
				}, {
					field : 'zcProducetime',
					title : '生产日期'
				}, {
					field : 'zcBuytime',
					title : '入库时间'
				}, {
					field : 'zcBuyer',
					title : '购买人'
				}, {
					field : 'zcType',
					title : '资产类型'
				}, {
					field : 'zcStatus',
					title : '状态',
					sort : true
				}, {
					field : 'zcId',
					title : '操作',
					width : 178,
					align : 'center',
					toolbar : '#barDemo'
				} ] ],
				page : true
			});

			//监听工具条
			table.on('tool(demo)', function(obj) {
				var data = obj.data;
				if (obj.event === 'update') {
					window.location.href = "/updateAssets1?zc_id="
							+ obj.data.zcId;
				}

			});
		});
	</script>
	<script type="text/html" id="barDemo">
			<a class="layui-btn layui-btn-primary layui-btn-xs"  lay-event="update">折旧</a>
	</script>
  
  
  
  </body>
</html>
